MOUNT
Section: Maintenance Commands (8)
Index
Return to Main Contents
BSD mandoc
BSD 4
NAME
mount
umount
- mount and dismount file systems
SYNOPSIS
mount
[-afrwuv
]
[-t minix | ext | msdos
]
mount
[-frwuv
]
special | node
mount
[-frwu
]
[-t minix | ext | msdos | iso9660 | nfs
]
[-o options
]
special node
umount
[-a
]
[-t minix | ext | msdos | iso9660 | nfs
]
umount
special | node
DESCRIPTION
The
mount
command
calls the
mount(2)
system call to prepare and graft a
special
device on to the file system tree at the point
node.
If either
special
or
node
are not provided, the appropriate
information is taken from the
fstab(5)
file.
The system maintains a list of currently mounted file systems.
If no arguments are given to
mount,
this list is printed.
Options available for the
mount
command:
- -f
-
Causes everything to be done except for the actual system call; if it's
not obvious, this ``fakes'' mounting the file system.
This option is useful in conjunction with the
-v
flag to
determine what the
mount
command is trying to do.
- -o
-
Options are specified with a
-o
flag
followed by a comma separated string of options.
The following options apply to any file system that is being mounted:
- noexec
-
Do not allow execution of any binaries on the mounted file system.
This options is useful for a server that has file systems containing
binaries for architectures other than its own.
- nosuid
-
Do not allow set-user-identifier or set-group-identifier bits to take effect.
- nodev
-
Do not interpret character or block special devices on the file system.
This options is useful for a server that has file systems containing
special devices for architectures other than its own.
- remount
-
Attempt to remount an already-mounted filesystem. This is commonly used to
change the mount flags for a filesystem, especially to make a readonly
filesystem writeable.
- synchronous
-
All
I/O
to the file system should be done synchronously.
- -r
-
The file system object is to be mounted read-only.
- -t minix \*(Ba ext \*(Ba msdos
-
The argument following the
-t
is used to indicate the file system type.
The type
minix
is the default.
For example, the
mount
command:
mount -a -t nomsdos,ext
mounts all filesystems except those of type
msdos
and
ext
- -u
-
The
-u
flag indicates that the status of an already mounted file
system should be changed. (Not yet implemented.)
Any of the options discussed above (the
-o
option)
may be changed;
also a file system can be changed from read-only to read-write.
The set of options is determined by first extracting the options
for the file system from the
fstab
table,
then applying any options specified by the
-o
argument,
and finally applying the
-r
or
-w
option.
- -v
-
Verbose mode.
- -w
-
The file system object is to be read and write.
Umount
removes the
special
device
grafted
at point
node
from file system tree.
Options for the
umount
command:
- -a
-
All of the file systems described in
mtab
are unmounted.
- -t
-
Is used to indicate the actions should only be taken on
filesystems of the specified type.
More than one type may be specified in a comma separated list.
The list of filesystem types can be prefixed with ``no'' to
specify the filesystem types on which no action should be taken.
(See example above for the
mount
command.)
FILES
- /etc/fstab
-
file system table
SEE ALSO
mount(2),
umount(2),
fstab(5)
BUGS
It is possible for a corrupted file system to cause a crash.
Linux doesn't support
-u
or
-o
synchronous yet.
HISTORY
A
mount
command appeared in
AT&T System
v6 .
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- FILES
-
- SEE ALSO
-
- BUGS
-
- HISTORY
-
This document was created by
man2html,
using the manual pages.
Time: 11:30:37 GMT, December 08, 2024